package test2;

import test2.*;

public class Test {

 public static void main(String[] args) {
  Student stu0 = new Student(2021310854,"序号一","男生","大数据专业","国学经典阅读");
  Student stu1 = new Student(2021310855,"序号二","女生");
  System.out.println("学生选课系统信息Student：");
  System.out.println(stu0);
  System.out.println(stu1);
  Teacher tea0 = new Teacher(1234,"南", "女性");
  System.out.println("老师授课信息Teacher:");
  System.out.println(tea0);
  Course cour0 = new Course(001,"选择高数");
  Course cour1 = new Course(002,"选择模电","教207",tea0);
  Course cour2 = new Course(003,"选择离散数学");
  stu0.addCourse(cour0);
  stu0.addCourse(cour2);
  stu1.addCourse(cour2);
  stu1.addCourse(cour0);
  stu1.removeCourse(cour2);
  stu0.displayCourse();
  cour0.removeStudent(stu1);
  cour1.displayStudent();
 }
 
}
